<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的抵用券 - {dede:global.cfg_webname/}</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../img/js/all.js"></script>
<script language="javascript" src="../../img/js/cookie.js"></script>
<script language="javascript" src="../../img/js/Calendar.js"></script>
<script language="javascript" src="../../img/js/manage.js"></script>


</head>
 
<body>
<!--Head-->
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<!--Head_end-->
<div id="wz">&nbsp;&nbsp;&nbsp;您当前所在的位置： <a href="/">网站首页</a> » <a href="/users/index.php">会员中心首页</a> » 我的抵用券</div>
<!--Main-->
<div id="page">
  <?php include(DEDEMEMBER."/templets/left.htm"); ?>
 <div id="uright">
  <div id="urtitle"></span><strong>我的抵用券</strong> (注：抵用券需管理员审核通过后，才可使用)</div>
  <div id="urborder" >
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr id="urtabletr">
    <td width="10%" height="28" class="urtabletdl">抵用券号</td>
    <td width="20%">获取线路</td>
    <td width="10%">获取日期</td>
    <td width="10%" align="center">过期日期</td>
    <td width="9%" align="center">金额</td>
    <td width="9%" align="center">审核状态</td>
	<td width="9%" align="center">使用状态</td>
  </tr>
   
   {dede:datalist}
  <tr id="urtabletd">
    <td height="32" class="urtabletdl"><?php echo $fields['id']; ?></td>
    <td class="urtabletdr">
	<?php
	
	if($fields[fromid]=='0')
	{
	echo $fields[message];
	}
	else
	{ 
	$titlea=$dsql->getone("select title from #@__archives where id='$fields[fromid]'");
	?>
	
	<a class='blue2' href='/plus/view.php?aid=<?php echo $fields['fromid']; ?>' target='_blank'>
	<?php
	echo $titlea['title']; 
	}?></a></td>
    <td><?php echo MyDate('Y-m-d h:i',$fields['sendtime']); ?></td>
    <td align="center"><?php
   $xtime=$cfg_dyqgq*86400;
   $oktime=$fields[sendtime]+$xtime;
   echo MyDate('Y-m-d h:i',$oktime);
    ?></td>
    <td align="center"><strong>¥<?php echo $fields['subject']; ?></strong></td>
    <td align="center"><span><?php 
    if($fields['hasview']=='0')
    {
    echo '未审核';
    }
    else
    {
      echo '<b>已审核</b>';
    }
    ?>
    </span></td>
	
	 <td align="center"><span><?php 
    if($fields['isadmin']=='0')
    {
    echo '未使用';
    }
    else
    {
      echo '<b>已使用</b>';
    }
    ?>
    </span></td>
	
  </tr>
    {/dede:datalist}
  
  </table>
<div id="list_p"><div id="list_page">{dede:pagelist listsize=5 /}</div></div></td>
   
 
</div>
</div>

</div>
<!--Main_end-->

<?php
   pasterTempletDiy("default/footer.htm");
?>

<!--Footer_end-->
</body>
</html>